/* 移动端登录注册样式 */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.auth-form {
    background: white;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.auth-form form {
    margin-bottom: 24px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.link:active {
    opacity: 0.7;
}

/* 按钮加载状态 */
.btn .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* 表单提示 */
.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger-color);
    margin-top: 4px;
}

/* 输入框错误状态 */
.form-control.error {
    border-color: var(--danger-color);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

/* 响应式调整 */
@media (max-width: 375px) {
    .auth-wrapper {
        padding: 20px 15px;
    }
    
    .auth-form {
        padding: 24px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}

/* iPhone X及更高版本的安全区域适配 */
@supports (padding: max(0px)) {
    .auth-wrapper {
        padding-top: max(30px, env(safe-area-inset-top));
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}

